package com.sy.dto;



import com.sy.entity.Category;

import java.util.List;

public class CategoryNode {
    /**
     * 属性描述: 当前分类信息自身的数据
     */
    private Category category;
    /**
     * 属性描述: 当前分类信息的子分类的信息
     */
    private List<CategoryNode> childCategoryNodes;

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public List<CategoryNode> getChildCategoryNodes() {
        return childCategoryNodes;
    }

    public void setChildCategoryNodes(List<CategoryNode> childCategoryNodes) {
        this.childCategoryNodes = childCategoryNodes;
    }

    @Override
    public String toString() {
        return "CategoryNode{" +
                "category=" + category +
                ", childCategoryNodes=" + childCategoryNodes +
                '}';
    }
}
